# The following lines of boilerplate have to be in your project's CMakeLists
# in this exact order for cmake to work correctly
file(GLOB_RECURSE SOURCES
    "*.c"
    "./cmd_wifi/*.c"
    "./cmd_system/*.c"
    "./cmd_nvs/*.c"
    "./cmd_MdLink/*.c"
    )

set(include_dirs 
    "."
    "./cmd_wifi"
    "./cmd_system"
    "./cmd_nvs"
    "./cmd_MdLink"
    )
idf_component_register(SRCS ${SOURCES}
                       INCLUDE_DIRS ${include_dirs}
                       REQUIRES driver esp_timer console esp_wifi nvs_flash spi_flash fatfs                
                       WHOLE_ARCHIVE)

target_compile_options(${COMPONENT_LIB} PRIVATE -Wno-unused-const-variable -Wno-format -Wno-format-truncation -Wno-incompatible-pointer-types)

